#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int main()
{
    int age = 0;
    int time = 3156;
    scanf("%d", &age);
    time = time * age;
    printf("%d0000", time);
    return 0;
}